/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.wp1.servlets;

import java.io.File;
import org.directwebremoting.ServerContext;

/**
 *
 * @author jio
 *
 * These exposes all the services offered by the app
 * Multiple services can be included here
 * sharing a common variable ServerContext
 * which simplifies things and avoids redundancy
 * Thus ServerContext will only be specified once
 */

public class Wp1ApiImpl implements Wp1Api {
   private Service service;
    private ServerContext wctx;

    public void updateServiceClient(File f) {
        service.update(wctx, f.getName());
    }

    /**
     * @return the service
     */
    public Service getService() {
        return service;
    }

    /**
     * @param service the service to set
     */
    public void setService(Service service) {
        this.service = service;
    }

    /**
     * @return the wctx
     */
    public ServerContext getWctx() {
        return wctx;
    }

    /**
     * @param wctx the wctx to set
     */
    public void setWctx(ServerContext wctx) {
        this.wctx = wctx;
    }



}
